package org.packtracker.client;

import java.util.Date;
import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("persistence")
public interface PersistenceService extends RemoteService {

	List<Package> readPackages(boolean filter) throws NotLoggedInException;

	Package addPackage(String trackingId, String tracker) throws NotLoggedInException;

	void removePackage(Long packageId) throws NotLoggedInException;

	Date readLastCheckedDate() throws NotLoggedInException;
	
	List<String> getTrackerNames();
}
